using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MuaDeal
{
    public partial class MainNV : Form
    {
        public MainNV()
        {
            InitializeComponent();
        }

      

        private void btthoat_Click(object sender, EventArgs e)
        {
            this.Close();
            DangNhap frm = new DangNhap();
            this.Visible = false;
            frm.ShowDialog();
            this.Close();
        }

        private void rdbtnxemdsct_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemdsct.Checked == true)
            {
                XemDSCongTy frm = new XemDSCongTy();
                frm.ShowDialog();rdbtnxemdsct.Checked=false;
            }
        }

        private void rdbtnxemdssp_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemdssp.Checked==true)
            {
                XemDSSanPham frm = new XemDSSanPham();
                frm.ShowDialog(); rdbtnxemdssp.Checked = false;
            }
        }

       
        private void rdbtnxemgh_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemgh.Checked == true)
            {
                XemGioHang frm = new XemGioHang();
                frm.ShowDialog(); rdbtnxemgh.Checked = false;
            }
        }

        private void radiothemsp_CheckedChanged(object sender, EventArgs e)
        {
            if (radiothemsp.Checked == true)
            {
                ThemSanPham frm = new ThemSanPham();
                frm.ShowDialog(); radiothemsp.Checked = false;
            }
        }

        private void rdbtnxoasp_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxoasp.Checked == true)
            {
                XoaSanPham frm = new XoaSanPham();
                frm.ShowDialog(); rdbtnxoasp.Checked = false;
            }
        }

        private void rdbtncapnhatct_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtncapnhatct.Checked == true)
            {
                CapNhatCongTy frm = new CapNhatCongTy();
                frm.ShowDialog(); rdbtncapnhatct.Checked = false;
            }
        }

        private void rdncapnhatsp_CheckedChanged(object sender, EventArgs e)
        {
            if (rdncapnhatsp.Checked == true)
            {
                CapNhatSanPham frm = new CapNhatSanPham();
                frm.ShowDialog(); rdncapnhatsp.Checked = false;
            }

        }

        private void rdbtnxemdsgh_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnxemdsgh.Checked == true)
            {
                XemDSGHTheoTenKH frm = new XemDSGHTheoTenKH();
                frm.ShowDialog(); rdbtnxemdsgh.Checked = false;
            }

        }


    }
}